package com.shuiyun.chat.entity;

import lombok.Getter;
import lombok.Setter;

/**
 * @program: chatServer
 * @description:
 * @author: shuiyun
 * @create: 2021-05-12 21:39
 **/
public enum HttpResult {

    // 状态
    SUCCESS("请求成功", 0),
    FAIL("请求失败", 1),

    PARAMETER_ERROR("参数异常", 99);

    @Setter
    @Getter
    private int code;

    @Setter
    @Getter
    private String message;

    HttpResult(String message, int code) {
        this.code = code;
        this.message = message;
    }
}
